package com.tms.basic.pojo.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("tms_department")
public class Department {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String deptCode;
    
    private String deptName;
    
    private Long parentId;
    
    private Integer sort;
    
    private String remark;
    
    private Boolean status;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    private String createUser;
    
    private String updateUser;
    
    @TableLogic
    private Boolean isDeleted;
}